(function(){if(!window.BLACKBOX_MODEL){if(window.name)try{if(eval(atob(window.name))===!0)return}catch(ct){}var u=1,e=2,s="true",r="false",l=0,a=103,v=104,y=112,p=113,w=122,b=123,k=132,d=133,g=142,nt=143,h=201,n={};n[l]="No Error";n[a]="Already Initialized";n[v]="Content Instance Terminated";n[y]="Termination Before Initialization";n[p]="Termination After Termination";n[w]="Retrieve Data Before Initialization";n[b]="Retrieve Data After Termination";n[k]="Store Data Before Initialization";n[d]="Store Data After Termination";n[g]="Commit Before Initialization";n[nt]="Commit After Termination";n[h]="General Argument Error";var f,t=0,c=0,tt=function(){try{f=JSON.parse(localStorage.getItem(window.location.href))}catch(n){}f=f||{}},i=function(t){try{console.log("API: Error "+t+" ("+n[t]+")")}catch(i){}c=t},o=function(){c=l},it=function(n){return n!==""?(i(h),r):t?(i(t===u?a:v),r):(t=u,o(),s)},rt=function(n){return n!==""?(i(h),r):t!==u?(i(t===e?p:y),r):(t=e,o(),s)},ut=function(n){return t!==u?(i(t===e?b:w),""):(o(),f[n])},ft=function(n,h){if(t!==u)return i(t===e?d:k),r;try{f[n]=h;localStorage.setItem(window.location.href,JSON.stringify(f))}catch(c){}return o(),s},et=function(n){return n!==""?(i(h),r):t!==u?(i(t===e?nt:g),r):(o(),s)},ot=function(){return c.toString()},st=function(t){return n[t]},ht=function(){return""};window.API={Initialize:it,Terminate:rt,GetValue:ut,SetValue:ft,Commit:et,GetLastError:ot,GetErrorString:st,GetDiagnostic:ht,RequestBookInfo:function(n){setTimeout(n,0,{})}};tt()}})()